@import "./commom.scss"; //引入导航栏和版权区域的公共样式

// 轮播图样式设置
.banner {
    position: relative;
    // width: 100%;   //不要设置100%,设置定宽是为了缩小任然居中显示
    width: 1520px;
    margin: 0 auto;

    // 轮播图蒙版样式的设置
    .mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #000;
        opacity: 0.4;
    }

    img {
        width: 1520px;
        height: 515px;
    }
}

// 主要区域

main {
    padding-left: 50px;
    background-color: #F0EFEF;

    // 齐白石
    .artists {
        border-bottom: 2px solid #999;
        box-sizing: border-box;
        padding-top: 50px;
        height: 600px;
        width: 95%;

        .artist_firstLine {
            position: relative;

            .left {
                z-index: 2;
                position: relative;
                width: 494px;
                height: 500px;

                img {
                    width: 100%;
                }

                p:nth-of-type(1) {
                    margin: 10px 8px;
                    font-size: 18px;
                    color: #444;
                }

                p {
                    margin: 0px 8px;
                    font-size: 14px;
                    line-height: 18px;
                    color: #444;

                    span {
                        color: red;
                    }
                }

                .see {
                    position: absolute;
                    padding: 2px;
                    bottom: 55px;
                    right: 30px;
                    border: 1px solid #444;
                    font-size: 14px;
                }
            }
        }

        // 白盒子
        .content {
            z-index: 3;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: absolute;
            top: 50px;
            right: 80px;
            width: 600px;
            height: 300px;
            background-color: #fff;

            p {
                margin: 50% auto;
                width: 340px;
                line-height: 30px;
                height: 300px;

            }
        }

        .red_border {
            z-index: 1;
            position: absolute;
            top: 20px;
            right: 190px;
            width: 650px;
            height: 360px;
            border: 4px solid #cd1414;
        }
    }

    // 推荐画家
    .recommend {
        box-sizing: border-box;
        padding: 96px;
        width: 95%;
        height: 600px;
        border-bottom: 2px solid #999;

        >p {
            padding: 20px 86px;
            line-height: 30px;
            text-align: center;
            margin: 0 auto;
            width: 126px;
            height: 30px;
            color: #cd1414;
            font-size: 20px;
            border: 2px solid #cd1414;
        }

        ul {
            margin: 80px auto;
            margin-bottom: 0px;
            display: flex;
            justify-content: space-around;
            height: 300px;
            width: 1000px;

            li {
                box-sizing: border-box;
                position: relative;
                text-align: center;
                height: 300px;
                width: 186px;

                &:hover {
                    border-bottom: 3px solid #cd1414;

                    div {
                        border: 1px solid #cd1414;

                        img {
                            border-radius: 50%;
                            border: 3px solid #cd1414;
                        }
                    }

                    >p {
                        border-color: #cd1414;

                        &::before {
                            border-top: 18px solid #cd1414;
                        }
                    }
                }

                div {
                    margin: 0 auto;
                    width: 172px;
                    height: 172px;
                    border-radius: 50%;
                    border: 1px solid transparent;

                    img {
                        width: 170px;
                    }
                }

                span {
                    margin-top: 10px;
                    display: inline-block;
                    width: 94px;
                    height: 29px;
                    font-family: MicrosoftYaHei;
                    font-size: 25px;
                    font-weight: normal;
                    font-stretch: normal;
                    letter-spacing: 2px;
                    color: #676666;
                }

                // 制作底部边框样式
                >p {
                    position: absolute;
                    bottom: 0;
                    box-sizing: border-box;
                    width: 100%;
                    height: 20px;
                    border-left: 3px solid transparent;
                    border-right: 3px solid transparent;

                    &::before {
                        position: absolute;
                        bottom: -28px;
                        left: 50%;
                        transform: translate(-50%);
                        content: " ";
                        width: 0;
                        height: 0;
                        border: 10px solid transparent;
                        border-top: 18px solid transparent;

                    }
                }
            }
        }

    }


    // 分类区域
    .kind {
        margin-top: 96px;
        width: 100%;
        height: 450px;
        // background-color: skyblue;

        >div {
            margin-bottom: 40px;
            width: 100%;
            height: 62px;
            // background-color: pink;

            >ul {
                box-sizing: border-box;
                width: 95%;
                height: 62px;
                display: flex;
                border-bottom: 2px solid #444;

                li {
                    box-sizing: border-box;
                    height: 62px;
                    line-height: 62px;
                    color: #444;
                    // padding
                    border-bottom: 2px solid #444;



                    // 设置第一个li的标签的下划线样式
                    &:first-of-type {
                        // border-bottom: 2px solid #F0EFEF;
                        padding-right: 20px;
                    }


                    a {
                        box-sizing: border-box;
                        border: 2px solid transparent;
                        border-bottom: 2px solid #444;
                        padding: 0px 20px;
                        height: 62px;
                        color: #444;
                        display: inline-block;
                        text-decoration: none;
                        // border-bottom: 2px solid #444;
                        border-collapse: collapse;

                        &:hover {
                            color: #cd1414;
                            border: 2px solid #444;
                            border-bottom: 2px solid #F0EFEF;
                        }
                    }
                }
            }
        }

        // .kind_middle {
        //     li:last-of-type {
        //         width: 530px;
        //         border-bottom: 2px solid #444;
        //     }
        // }

        // .kind_bottom {
        //     li:last-of-type {
        //         width: 600px;
        //         border-bottom: 2px solid #444;
        //     }
        // }
    }

    // 类型内容区域
    .kind_content {
        .artist_secondLine {
            padding-bottom: 200px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            width: 1200px;
            height: 910px;

            >div {
                position: relative;

                box-sizing: border-box;
                width: 385px;
                height: 440px;
                box-shadow: 1px 2px 4px 1px #999;

                img {
                    width: 100%;
                }

                p:nth-of-type(1) {
                    margin: 25px 8px;
                    font-size: 14px;
                    color: #444;
                }

                p {
                    margin: 0px 8px;
                    font-size: 13px;
                    line-height: 18px;
                    color: #444;

                    span {
                        color: red;
                    }
                }

                .look {
                    position: absolute;
                    padding: 2px;
                    bottom: 55px;
                    right: 30px;
                    border: 1px solid #444;
                    font-size: 14px;
                }

            }
        }
    }

}